﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace CacheManager
{
    public interface ICacheManager
    {
        string Get(string key);
        Task<string> GetAsync(string key);
        T Get<T>(string key);
        Task<T> GetAsync<T>(string key);
        void Set(string key, object data, int expiredSeconds);
        Task<bool> SetAsync(string key, object data, int expiredSeconds);

    }
}
